<?php
/**
 * Created by PhpStorm.
 * User: Jacky
 * Date: 2017/5/6
 * Time: 9:57
 */
namespace core;
class imooc
{
    public static $classMap = array();
    static public function run()
    {
        echo 'Imooc OK!';
        //var my = new test;
        $route = new \core\lib\route();
    }

    static public function load($class)
    {
        if (isset($classMap[$class])) {
            return false;
        } else {
            $class = str_replace('\\', '/', $class);
            $file=IMOOC ."/". $class . '.php';
            if (is_file($file)){
                include $file;
            }
            else {
                return flase;
            }
        }
    }

}